
#ifndef LOD_TOOLS_H
#define LOD_TOOLS_H

#include "base/point3.h"
#include "base/vector3.h"
#include "types.h"

#include <cmath>

//! Cross product a x b
vector3<co_type> cross(const vector3<co_type>* a, const vector3<co_type>* b);

//! Converts an angle given in grades to radians
co_type grad2rad(co_type grads);


//! Norm (~ length) of the vector [(0,0,0), p]
co_type norm(point3<co_type> p);


// Norm (~ length) of the vector
co_type norm(vector3<co_type> v);


#endif // LOD_TOOLS_H
